<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>紫色鹭</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/style.css">
    <style>


    </style>
    <script src="../js/config.js"></script>
</head>
<body>
<div class="get_html">
    <div class="search_head">
        <div class="container">
            <div class="clearfix">
                <div class="logo" onclick="location.href = 'index.html'"><img src="../img/logo_01.png" alt=""></div>
                <div class="search_center">
                    <div class="search_box">
                        <input type="text" placeholder="" onkeydown="toSearch(event)">
                        <button>搜索</button>
                    </div>
                    <!--<div class="hot">-->
                    <!--<a target="_blank"  href="">康明斯</a>-->
                    <!--<a target="_blank"  href="">康明斯</a>-->
                    <!--<a target="_blank"  href="">康明斯</a>-->
                    <!--<a target="_blank"  href="">康明斯</a>-->
                    <!--<a target="_blank"  href="">康明斯</a>-->
                    <!--</div>-->
                </div>
                <div class="my_shopcar">
                    <i class="icon_shopcar"></i>我的购物车<span class="car-num">0</span></i>
                </div>
            </div>
        </div>
    </div>
    <div class="store_tab clearfix">
        <div class="container">
            <a class="js-storeHome">店铺首页</a>
            <a class="js-enterIntro">企业简介</a>
            <a class="js-enterInfo">企业动态</a>
            <a class="js-enterRy">资质荣誉</a>
        </div>
    </div>
    <script>
        //js写入html中，以便赋值回父页面
        $("body").on("click", ".search_head .search_center .search_box button", function () {
            var name = $(".search_head .search_center .search_box input").val();
            location.href = "product_list.html?name=" + name;
        })
        function toSearch() {
            if (event.keyCode == "13") {
                var name = $(".search_head .search_center .search_box input").val();
                location.href = "product_list.html?name=" + name;
            }
        }
        //    //取出html代码重新赋值父页面search_head
        $(document).on("click", ".go-list", function () {
            var name = $(this).html();
            location.href = "product_list.html?type=" + name;
        })
        $(".search_head .search_center .search_box input").val(getUrlParam("name"))
    </script>
</div>

</body>
<script src="../js/config.js"></script>
<script>
    var nowDate = new Date().getTime();

    var get_html = $(".get_html").html();
    var _iframe = window.parent;
    var _div = _iframe.document.getElementById('head_store_html');
    $(_div).html(get_html);


</script>
</html>